 // 新闻轮播
 const newHeader = document.querySelector('.new-header');
 let newActive = newHeader.querySelector('.active');
 const newBody = document.querySelector('.new-body');
 let index2 = 0;
 newHeader.addEventListener('mouseover',function(e){
     if(e.target.tagName == 'LI' && !e.target.classList.contains('more')){
         let li = e.target;
         console.log(li.dataset.index);
         index2 = li.dataset.index;
         newActive.classList.remove('active');
         li.classList.add('active');
         newActive = li;
         newBody.style.transform = `translate(${index2*-324.6}px)`;
         newBody.style.transition = 'all 0.4s';
     }
 })